package UserService;
import java.util.List;
import org.vo.User;
import org.vo.*;
public interface UserService {
 public int register(User user)throws Exception;                              //注册用户
 public int login(String username,String password)throws Exception;           //登录
 public int alterUsername(User username,User newUsername)throws Exception;    //修改用户名
 public int alterPassword(String password,String newPassword)throws Exception;//修改用户密码
 public boolean deleteUser(int eid)throws Exception;                           //删除用户
 public User findUserByeid(int eid)throws Exception;                           //根据ID查找用户
 public User findUserByename(String ename)throws Exception;                    //根据用户名查找用户
 public List<User> findAll()throws Exception;                                  //查找全部
}
